package org.example.weather.bigscreen.portal.utils;

import com.fasterxml.jackson.core.type.TypeReference;
import org.example.weather.bigscreen.portal.dto.BigScreenMapDataDTO;
import org.example.weather.bigscreen.portal.dto.BigScreenResponseDTO;

public class MockUtils {
    public static <T> T mock(Class<T> clazz, String filePath) {
        return JsonUtils.parseObject(clazz, ResourceUtils.readAsString(filePath));
    }

    public static <T> T mock(TypeReference<T> typeReference, String filePath) {
        return JsonUtils.parseObject(typeReference, ResourceUtils.readAsString(filePath));
    }
}
